lib/deploy: skip fallocate call when requested size is 0
authorDusty Mabe <dusty@dustymabe.com>
Thu, 1 Jun 2023 13:23:41 +0000 (09:23 -0400)
committerDusty Mabe <dusty@dustymabe.com>
Thu, 1 Jun 2023 13:25:35 +0000 (09:25 -0400)
commit68d1d9a7fc08c281174f57b638fa06f7aea73601
tree13ff5dbece37a46544e05e8c5995d1a285e8b382
parent5eacc96df321039e36bd237824d0c1b7ed8af6ef
lib/deploy: skip fallocate call when requested size is 0

If the requested size is 0 then of course we have enough room ðŸ™‚

This avoids the fallocate call returning an EINVAL.

Closes: #2869
src/libostree/ostree-sysroot-deploy.c